Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • QT6: QComboBox focus style

    Unsolved
    2
    0 Votes
    2 Posts
    360 Views
    jsulmJ
    @Terry-Barnaby https://doc.qt.io/qt-6/stylesheet-syntax.html https://doc.qt.io/qt-6/stylesheet-reference.html
  • Image transfer through QTCPSocket from client to server ..

    Unsolved
    3
    0 Votes
    3 Posts
    353 Views
    P
    @jsulm thanks for the info and i have solved the issue. can you please help me resolve issue with my new post also.
  • Can qt3d work with qt model/view programming?

    Unsolved
    2
    0 Votes
    2 Posts
    208 Views
    kshegunovK
    What would you need a model for? The 3D scene boils down to a tree of nodes (entities and components), so I suppose the better question you should be asking is - "If I were to have a model for my molecule, what would it represent - expose to the supposed view". In other words I don't see a reason why you'd want to have a model that represents a single molecule. Perhaps if you elaborate on why you think you may need it, we could explore that. Perhaps you would want to share a mock-up of your UI, which could be useful to determine what you actually need to implement as models/views. Generally speaking you'd want a model if you're going to use it with the model-view framework, other than that you don't.
  • How to share "layout" ?

    Unsolved
    2
    0 Votes
    2 Posts
    191 Views
    Christian EhrlicherC
    @AnneRanch said in How to share "layout" ?: I just cannot replace non-existent "layout" As already written now three times from various people out here. Take a QWidget. Add a layout, add your Console and all the other widgets to this layout and you're done.
  • "go to slot" vs coded signal/slot connection

    Unsolved
    14
    0 Votes
    14 Posts
    4k Views
    A
    @Pl45m4 I am tempted to report your post to somebody who cares. THIS CONSTANT BASHING GOT TO STOP. It is against my nature to discuss such behaviour, however, I am going to reply in same style. ( I do not care TO GET BANNED FROM ThIS CESS POOl I haVE HAD IT ) Would you PLEASE go back to kindergarten school and learn how NOT TO PUT PEOPLE DOWN ?
  • Howto dynamically modify 2D array of QvariantList?

    Unsolved
    2
    0 Votes
    2 Posts
    216 Views
    Christian EhrlicherC
    @lorenwell said in Howto dynamically modify 2D array of QvariantList?: What I am doing wrong? You forgot to add/replace list2 in list1 after you modified it.
  • BUMP - how to code "main window display area "?

    Unsolved
    10
    0 Votes
    10 Posts
    1k Views
    A
    UPDATE I have narrowed it down to TAB widget.... STAND BY [image: ff694b08-3f79-494c-85c4-2d96dfbdc444.png]
  • How to get the text output from an ui program with the qprocess

    Unsolved
    4
    0 Votes
    4 Posts
    282 Views
    Pl45m4P
    @JonB said in How to get the text output from an ui program with the qprocess: NOTE: Whether what you call "an ui program" will actually write anything at all to stdout/err is a different matter. I assumed that project "a" (the one running as QProcess) is @nicker-player 's own additional Qt GUI app :) //project a: int main(){ qDebug()<<"output"; }
  • QDBusAbstractAdaptor blocking issue

    Unsolved
    4
    0 Votes
    4 Posts
    330 Views
    Q
    One more thing, the issue is hard to reproduced. Only one time found in our linux terminal.
  • Qt to open .mdb file, failed at IM002 QODBC: Unable to connect

    Solved
    4
    0 Votes
    4 Posts
    603 Views
    Q
    @Christian-Ehrlicher Thanks dude, after trying the same code with Qt 6.6.3 the connection works. So we just need to wait for a patch for this problem. Dang, I thought there was an error in my code or my setup.
  • Accessing the Nested Data in ListModel or alternatives

    Unsolved
    2
    0 Votes
    2 Posts
    161 Views
    Axel SpoerlA
    @Shubham_Senpai Please edit your post and use the code tags to format the code you post. Makes it much easier to read and reply :-)
  • different build with Configure commandline macro

    Unsolved
    4
    0 Votes
    4 Posts
    317 Views
    Axel SpoerlA
    @sierdzio Simple minds not only think alike, but also post at the same time :-) But I must admit, knowing color hex codes by heart exceeds my level!
  • Which branch to push translations to?

    Unsolved
    4
    0 Votes
    4 Posts
    326 Views
    L
    @Luganda01 I have succeeded in pushing the translations to the dev branch. What to do about the 5.15 branches remains to be seen. Regards, Kizito
  • attempting to deploy app, but ...

    Unsolved
    5
    0 Votes
    5 Posts
    416 Views
    M
    @jsulm said in attempting to deploy app, but ...: @micha_eleric said in attempting to deploy app, but ...: installed qt-everywhere-src-5.15.13 I still fail to understand what you're doing. What do you mean by "installed qt-everywhere-src-5.15.13" - do you mean you built Qt by yourself? You alse seem to built Qt statically (@ChrisW67 pointed out that already) - is that what you want? https://doc.qt.io/qt-6/linux-deployment.html#application-dependencies
  • Getting error from DirectShow Renderer on MSYS MINGW64

    Solved
    5
    0 Votes
    5 Posts
    357 Views
    S
    Well, it was the newAVIImage slot the instigator of this error. It used glTexImade2D for all frames images. You should instead use glTexImage2d for the first frame, then use glTexSubImage2D for the subsequent frames. It seems like a memory problem that takes a while to reset.
  • How should I use the model/view for my application

    Solved
    5
    0 Votes
    5 Posts
    348 Views
    jeremy_kJ
    @Hamza-Umair said in How should I use the model/view for my application: @jeremy_k I can not use an item view becuase the items are different? In my understanding of qt item model/view, you can not do that. I am probably wrong though. You absolutely can have different types of data in a single view. Use a designated role in a designated column to indicate the type. A view delegate can use this role to alter the display for each type. QStandardItem::type() is another way to represent this strategy. A view can also use a filter model to remove types that should be hidden. QAbstractItemView::setRootIndex() can be useful for limiting display to children of a particular node (i.e. the Bond list of a particular Molecule) The address book demonstrates filtering and multiple views from a single model. https://doc.qt.io/qt-6/qtwidgets-itemviews-addressbook-example.html
  • QT 6.6.3 Qt Virtual Keyboard deployment

    Unsolved
    3
    0 Votes
    3 Posts
    398 Views
    SGaistS
    @Sevi hi, What you did is pass the Qt qml sources, so windeployqt will copy absolutely everything. The qml parameter should point to your project's qml files so only what is required is copied.
  • change central widget size ?

    Unsolved
    2
    0 Votes
    2 Posts
    226 Views
    Christian EhrlicherC
    @AnneRanch said in change central widget size ?: Can I change / set heigh of the central widget to occupy only part if the QMainWindow display area ? No.
  • replacing QGLWidget in QOpenGLWidget is not working

    Solved
    2
    0 Votes
    2 Posts
    323 Views
    S
    void MyGLWidget::newAVIImage(QImage image) { static int ss =0; image = image.mirrored(); // bindTexture(image); glBindTexture(GL_TEXTURE_2D, m_tex); image = image.convertToFormat(QImage::Format_RGB888); if (ss==0) { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, image.width(), image.height(), 0, GL_RGB, GL_UNSIGNED_BYTE, image.bits()); ss=1; } else { glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, image.width(), image.height(), GL_RGB, GL_UNSIGNED_BYTE, image.bits()); } update(); } The above code solved the problem, that is using glTexImage2D for all frames was the culprit, it should be used only for the first frame. Subseqent frames should use glTexSubImage2D.
  • how do I find a primary key using a QSqlRelationalTableModel?

    Unsolved sql model
    4
    0 Votes
    4 Posts
    634 Views
    JonBJ
    @jdent You have to iterate through the rows looking for the value you want. If you use a QSortFilterProxyModel you can take advantage of binary search for speed if you sort by primary key. QSqlRelationalTableModel is not important here, all that gives is a "lookup" on one field to map e.g. an integer value to a corresponding string from a related table for display.