Trying to find the Qt5 version of QVBoxLayoutHow to change the version requested from QGIS Plugin Repository?Getting Error While Parsing Feature To The lineEdit In PythonQGIS version information 2.18.12Built QGIS 2.xx debian packages with QT5 : unmet QT4 dependenciesHow to get the selected value in a value map with Function Editor in QGIS 3.0.2?QT Designer: Cannot load library C:…designerpyqt5.dll: The specified module could not be foundFind diagram for understanding pyqgisAccess the Vertex Tool (Current Layer)Filter layerlist in snapping dock of QGIS3 to show only layers selected in the layer-dock (TOC)QGIS Version 3.6 Raster Calculator
How to take photos in burst mode, without vibration?
How to show the equivalence between the regularized regression and their constraint formulas using KKT
How could indestructible materials be used in power generation?
Could gravitational lensing be used to protect a spaceship from a laser?
Can I ask the recruiters in my resume to put the reason why I am rejected?
Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?
Is it inappropriate for a student to attend their mentor's dissertation defense?
Alternative to sending password over mail?
Why does Arabsat 6A need a Falcon Heavy to launch
How can I tell someone that I want to be his or her friend?
Anagram holiday
Can a virus destroy the BIOS of a modern computer?
In Romance of the Three Kingdoms why do people still use bamboo sticks when papers are already invented?
What is going on with Captain Marvel's blood colour?
Were any external disk drives stacked vertically?
What exploit are these user agents trying to use?
Will google still index a page if I use a $_SESSION variable?
How can I make my BBEG immortal short of making them a Lich or Vampire?
Took a trip to a parallel universe, need help deciphering
I'm flying to France today and my passport expires in less than 2 months
Does a druid starting with a bow start with no arrows?
What reasons are there for a Capitalist to oppose a 100% inheritance tax?
Watching something be written to a file live with tail
I Accidentally Deleted a Stock Terminal Theme
Trying to find the Qt5 version of QVBoxLayout
How to change the version requested from QGIS Plugin Repository?Getting Error While Parsing Feature To The lineEdit In PythonQGIS version information 2.18.12Built QGIS 2.xx debian packages with QT5 : unmet QT4 dependenciesHow to get the selected value in a value map with Function Editor in QGIS 3.0.2?QT Designer: Cannot load library C:…designerpyqt5.dll: The specified module could not be foundFind diagram for understanding pyqgisAccess the Vertex Tool (Current Layer)Filter layerlist in snapping dock of QGIS3 to show only layers selected in the layer-dock (TOC)QGIS Version 3.6 Raster Calculator
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Migrating a plugin and started getting the error AttributeError: module 'qgis.PyQt.QtGui' has no attribute 'QVBoxLayout' I cannot find this one in the API changes I tied using qgis.PyQt5.QtGui but that didn't work.
I thin it is usage or syntax according to this
https://doc.qt.io/qt-5/qvboxlayout.html the in Qt5 the QVBoxLayout usage is a bit different. I have self.verticalLayout = QtGui.QVBoxLayout(Configuration) I am thinking Qt5 has a completely different way of setting ui's and there is a lot of ui settings in thsi; is there a converter out there for Qt4 to Qt5? Qgis2to3 didn't change any of this code.
qgis-3 qgis-2 pyqt5 pyqt4
add a comment |
Migrating a plugin and started getting the error AttributeError: module 'qgis.PyQt.QtGui' has no attribute 'QVBoxLayout' I cannot find this one in the API changes I tied using qgis.PyQt5.QtGui but that didn't work.
I thin it is usage or syntax according to this
https://doc.qt.io/qt-5/qvboxlayout.html the in Qt5 the QVBoxLayout usage is a bit different. I have self.verticalLayout = QtGui.QVBoxLayout(Configuration) I am thinking Qt5 has a completely different way of setting ui's and there is a lot of ui settings in thsi; is there a converter out there for Qt4 to Qt5? Qgis2to3 didn't change any of this code.
qgis-3 qgis-2 pyqt5 pyqt4
add a comment |
Migrating a plugin and started getting the error AttributeError: module 'qgis.PyQt.QtGui' has no attribute 'QVBoxLayout' I cannot find this one in the API changes I tied using qgis.PyQt5.QtGui but that didn't work.
I thin it is usage or syntax according to this
https://doc.qt.io/qt-5/qvboxlayout.html the in Qt5 the QVBoxLayout usage is a bit different. I have self.verticalLayout = QtGui.QVBoxLayout(Configuration) I am thinking Qt5 has a completely different way of setting ui's and there is a lot of ui settings in thsi; is there a converter out there for Qt4 to Qt5? Qgis2to3 didn't change any of this code.
qgis-3 qgis-2 pyqt5 pyqt4
Migrating a plugin and started getting the error AttributeError: module 'qgis.PyQt.QtGui' has no attribute 'QVBoxLayout' I cannot find this one in the API changes I tied using qgis.PyQt5.QtGui but that didn't work.
I thin it is usage or syntax according to this
https://doc.qt.io/qt-5/qvboxlayout.html the in Qt5 the QVBoxLayout usage is a bit different. I have self.verticalLayout = QtGui.QVBoxLayout(Configuration) I am thinking Qt5 has a completely different way of setting ui's and there is a lot of ui settings in thsi; is there a converter out there for Qt4 to Qt5? Qgis2to3 didn't change any of this code.
qgis-3 qgis-2 pyqt5 pyqt4
qgis-3 qgis-2 pyqt5 pyqt4
asked Apr 1 at 18:17
Tyler VeinotTyler Veinot
427212
427212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
All GUI objects are now in QtWidgets
instead of QtGui
.
from qgis.PyQt.QtWidgets import QVBoxLayout
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317403%2ftrying-to-find-the-qt5-version-of-qvboxlayout%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
All GUI objects are now in QtWidgets
instead of QtGui
.
from qgis.PyQt.QtWidgets import QVBoxLayout
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
add a comment |
All GUI objects are now in QtWidgets
instead of QtGui
.
from qgis.PyQt.QtWidgets import QVBoxLayout
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
add a comment |
All GUI objects are now in QtWidgets
instead of QtGui
.
from qgis.PyQt.QtWidgets import QVBoxLayout
All GUI objects are now in QtWidgets
instead of QtGui
.
from qgis.PyQt.QtWidgets import QVBoxLayout
answered Apr 1 at 18:26
etrimailleetrimaille
1,811618
1,811618
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
add a comment |
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
What I did was add QtWidgets to the end of from qgis.PyQt import QtCore, QtGui, QtWidgets and from qgis.PyQt.QtWidgets import QVBoxLayout just below that. Then changed all the QtGui.QVBoxLayout() to QtWidgetrs.QVBoxLayout(). When I reinstalled the plugin QGIS threw the next set of errors. Was there a cleaner way?
– Tyler Veinot
Apr 1 at 19:01
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317403%2ftrying-to-find-the-qt5-version-of-qvboxlayout%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown