Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • C++ Qt3DExtras::QTorusMesh – cannot be rotated in Z direction

    Solved qt3d
    6
    0 Votes
    6 Posts
    1k Views
    J
    Ok I found what is causing that - the torus is created facing Z. Thanks.
  • XDG Desktop portal in Qt

    Unsolved xdg flatpak
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Not a direct answer but why not use QDesktopService::openUrl ? Or are you trying to make your app open that file type ?
  • Crashing while turn on/off BTLE adapter

    Unsolved
    13
    0 Votes
    13 Posts
    1k Views
    SGaistS
    By the way, can you give more information about your setup ? (hardware/software)
  • QTreeWidget branch icons

    Unsolved
    1
    0 Votes
    1 Posts
    953 Views
    No one has replied
  • Qtimer on tabs of QTabWidget... not updating?

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    mrjjM
    @David-Jacobson Hi Well if a widget is not shown http://doc.qt.io/qt-5/qwidget.html#visible-prop returns false, there is really no reason to redraw on screen as its just wasted efforts. ( as doc talks about) I think this is what you are seeing.
  • Why does the child widget not resize when I call resize () on parent?

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    X
    @mrjj Yeah! Fantasstic answer!! Thank you very much!:) We close question [EDIT: Expletives removed --JKSH]
  • Window all blacked in OpenGL 3.1

    Unsolved
    7
    0 Votes
    7 Posts
    829 Views
    M
    So this problem is related with my system? can someone run a QOpenGLWidget with my format in their pc?
  • Use QTableWidget in c++ visual studio to display sqlite database contents

    Unsolved
    2
    0 Votes
    2 Posts
    985 Views
    mrjjM
    Hi and welcome to the forums. You can use the http://doc.qt.io/qt-5/qsqltablemodel.html#details There is sample in the docs of how to hook up the model to the view. There are also other models if showing a table is not what you want. The http://doc.qt.io/qt-5/qsqlquerymodel.html allows to use SQL to select the data. Im not sure what Qtaddon can create regarding UI files. QtCreator can both create a stand alone UI and one that has .h and .cpp also. I assumed its the same with the addon but i have no VS to test it. Does addon offer more than one option for UI file ?
  • 0 Votes
    1 Posts
    994 Views
    No one has replied
  • 0 Votes
    7 Posts
    2k Views
    K
    @JKSH Thanks, yes I am aware of this possibility in creator. IIRC I had encouraged you to publish the browser extension for Chrome. Great tool! Basically use it all the time. I have stumbled across a couple of macros without a trace of documentation. Personally I consider as a pity.
  • Return custom widget from QStackedWidget

    Solved
    4
    0 Votes
    4 Posts
    582 Views
    A
    @mrjj Thank you very much!
  • Suddenly unable to compile any examples

    Unsolved
    6
    0 Votes
    6 Posts
    765 Views
    JazzyGuyJ
    I think I am running qmake. Just did a full Creator update and now I can run the calendar example, so maybe it was a bug that got me and was fixed. Time will tell. Perhaps I somehow changed to make from qmake, unsure, but thank you for the tip. FWIW: I had copied and executed the comment in Makefile at the bottom of the top header section, and after then was when my troubles began. That was for a different project. After executing the qmake config command, I was able to build my project successfully from cmd line using make (will try with qmake, thanks for tip) and also from within Sublime Text 3, which I normally use. The examples started to fail to build in Creator after then. Why (if true) did my configuring another project affect Creator? What is the proper way to configure projects for external building outside of Creator that won't affect Creator's operation, if that is what happened? Any hints or advice on those lines much appreciated. Thanks.
  • How many qm files are in rcc file

    Solved
    5
    1 Votes
    5 Posts
    615 Views
    Pablo J. RoginaP
    @KiranRudigi is your issue solved? if so please don't forget to mark your post as such. Thanks
  • How to make QLegend scrollable?

    Unsolved qtchart qlegend qgraphicsview
    1
    1 Votes
    1 Posts
    626 Views
    No one has replied
  • QLineEdit in modal QDialog: cannot enter text.

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    kshegunovK
    @Bart_Vandewoestyne said in QLineEdit in modal QDialog: cannot enter text.: So apparently, somewhere between Qt 4.8.7 and Qt 5.11.3 there is a change in behavior for the QWidget::grabKeyboard() method in combination with modality grabKeyboard is the ultimate "modality" and is very invasive. If you're using it (regularly) it probably means you are doing something you shouldn't be. (or we were doing something wrong and were just lucky in 4.8.7)? It is possible. No way to tell beside boiling it down to an MRE which can be dissected.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Way to catch non-QApplication window events ?

    Unsolved
    4
    0 Votes
    4 Posts
    474 Views
    dheerendraD
    No direct way to do this in Qt. You need to write this on your own.
  • Qtconcurrent, multithread, invoke

    Solved
    4
    0 Votes
    4 Posts
    393 Views
    dheerendraD
    That is the right way.
  • Aligning QTabBars in Grid Layout

    Solved
    3
    0 Votes
    3 Posts
    419 Views
    D
    Ended up figuring this out using Spacers. New Grid code below: QGridLayout* gridLayout = new QGridLayout(); this->setLayout(gridLayout); QTabBar* unitTabs = TabGenerator(QTabBar::RoundedEast); unitTabs->addTab("Unit"); QTabBar* subsystemTabs = TabGenerator(QTabBar::RoundedNorth); subsystemTabs->addTab("Subsystem"); QTabBar* logOrStateTabs = TabGenerator(QTabBar::RoundedWest); logOrStateTabs->addTab("Log"); QStackedWidget* mainView = new QStackedWidget(); QSpacerItem* leftVertSpacer = new QSpacerItem(1,1,QSizePolicy::Minimum, QSizePolicy::Expanding); QSpacerItem* rightVertSpacer = new QSpacerItem(1,1,QSizePolicy::Minimum, QSizePolicy::Expanding); QSpacerItem* topHorizSpacer = new QSpacerItem(1,1,QSizePolicy::Expanding, QSizePolicy::Minimum); gridLayout->addWidget(subsystemTabs, 0, 1); gridLayout->addWidget(logOrStateTabs, 1, 0); gridLayout->addWidget(mainView, 1, 1, 2, 2); gridLayout->addWidget(unitTabs, 1, 3); gridLayout->addItem(leftVertSpacer, 2,0); gridLayout->addItem(topHorizSpacer, 0,2); gridLayout->addItem(rightVertSpacer, 2, 3);
  • Convert a QByteArray in Hex to a Struct

    Solved
    19
    0 Votes
    19 Posts
    2k Views
    SGaistS
    You're welcome ! Qt is C++ so by learning the second you'll be able to master the first :)