Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • Itemview (ProxyModel)

    2
    0 Votes
    2 Posts
    2k Views
    A
    You can build a proxy model that does that, but none of the standard proxy models work that way. There is no standard functionality to do this. However, you can also use the view to do the work for you. Just set the correct modelIndex as the root index for the table view. If you want to display only children of the currently selected item in the tree view, you get that item's model index, map it to the corresponding index in the proxy (using one of the proxy model mapping methods), and set the resulting index as the root index for your table view.
  • Does rotation of QDeclarativeview has a peformance cost ?

    3
    0 Votes
    3 Posts
    1k Views
    A
    I have a device which its display is with 180 degrees rotation. I run on this device QML application unside Qt QdeclarativeView. on my main.cpp i rotate the QDeclarativeView 180 degrees. Does this action affect the performance of my program (other QML paint operation will be slower) ?
  • 0 Votes
    3 Posts
    9k Views
    R
    I solved the problem by declaring @signals: void invalidEntry() const;@ it works OK
  • How to set name of custom widget in Qt designer?

    2
    0 Votes
    2 Posts
    2k Views
    V
    Ok, figured it out today by having a look at the designer source code. The designer converts the XML returned by QDesignerCustomWidgetInterface::domXml() into QDesignerCustomWidgetData by calling QDesignerCustomWidgetData::parseXml() The parseXml() method clearly states that one have to add the attribute displayname to the widget xml tag, for example: @<ui language="c++" displayname="My Custom Widget"> <widget class="..." ...> ... </widget> </ui>@ So long Daniel
  • [solved]connect: No such slot QItemDelegate::invalidData()

    5
    0 Votes
    5 Posts
    3k Views
    R
    Thanks Solved the issue.
  • [Solved] Custom Completer Example - strange behavior

    3
    0 Votes
    3 Posts
    2k Views
    A
    Next time you find that your issue is solved, please add a [SOLVED] tag to your topic title by editing your first post. Thanks!
  • Render-artefacts when rotating a QGraphicsWidget

    7
    0 Votes
    7 Posts
    3k Views
    Z
    I have just made a Driver update. from 285 to 301 on my NVidia 560 GTX. Still have those artefacts :(
  • Detecting when a QGraphicsItem's boundingRect has changed

    8
    0 Votes
    8 Posts
    6k Views
    A
    @Mario: Thanks for the hint regarding QGraphicsTextItem. It might be a useful workaround, if nothing comes up that works for all QGraphicsItem subclasses.
  • QTableView doesn't show any data

    4
    0 Votes
    4 Posts
    6k Views
    T
    I really appreciate it Andre! I followed your advice, changed some things around and now it's displaying. I can't say I'm 100% solid on stack/heap stuff and why it needed to be that way, but it gives me some reading to do. Thanks a ton!
  • QLibrary and QtCreator's Utils plugin

    7
    0 Votes
    7 Posts
    4k Views
    T
    Check the code that loads plugins in Qt Creator. I never checked what it does exactly, but since we have files defining dependencies and extra information like that it most likely does more than what the normal Qt methods for plugin loading does.
  • Ported Qt program (Windows to linux) segmentation fault

    7
    0 Votes
    7 Posts
    4k Views
    G
    I have finally fixed my problem ! Just created a complete new project and copy pasted everything. I think it must have been something with a bad userfile? Thanks though !
  • QtScript Error objects

    4
    0 Votes
    4 Posts
    2k Views
    T
    Hmm.. It looks strange. AFAIK, this coe must work. But Chrome can't get x.backtrace also.
  • QPainter::drawText ignores Alpha

    2
    0 Votes
    2 Posts
    3k Views
    D
    Setting a pen color with alpha and then drawing text works here perfectly...
  • Making a window with Qt

    3
    0 Votes
    3 Posts
    1k Views
    T
    Hi, ~TND5! Welcome to Qt Developer Network! As DerMan explained - any Qt top-level widgets without parents displays with QFrame. So if you run this code: @ QWidget a; // a - without parent a.setGeometry(10,10,300,200); // x = 10, y = 10, width = 300, height = 200 a.show(); // show it @ It will show new window which will contain all that a contains. But if you run this code in MainWindow for e.g: @ QWidget a(this); // a - with parent a.show(); // show it @ It will display a in this widget.
  • Extend editablesqlmodel example to add data to database

    1
    0 Votes
    1 Posts
    822 Views
    No one has replied
  • Help with old example of Qt widgets embedded in OpenGL

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Strange problem about OpenGL drawing in a QGraphicsView.

    2
    0 Votes
    2 Posts
    2k Views
    S
    I revised the line to : glPolygonMode(GL_BACK, GL_LINE); the problem still exists, HHHOoooWWwwever, glPolygonMode(GL_FRONT, GL_LINE); sloved the problem and the two items come out to be as expected. Why?
  • QSslSocket Client + Server

    2
    0 Votes
    2 Posts
    6k Views
    G
    I have resolved it, client missed CA certificate so: @Socket->addCaCertificates("C:/SOURCE/Project/Qt/server.csr");@ added to client fixed my problem.
  • How can I cause a thread to timeout?

    11
    0 Votes
    11 Posts
    8k Views
    D
    @Lukas: Thank you for the links. I'm studying multithreading only to know its possibilities, and those links are just what I needed :-)
  • Qt encryption, QCA build error

    12
    0 Votes
    12 Posts
    8k Views
    D
    Well then a Hash is definetly the right thing and an encryption is definetly the wrong thing to use. Further one shouldn't make up own security/authorization protocols when not proficient in it. Your scheme looks like it's vulnerable to replay attacks (due to the determinism in "Server increments question"). Make your application work with the standard mechanisms in the field: https://en.wikipedia.org/wiki/Cryptographic_nonce https://en.wikipedia.org/wiki/Cryptographic_salt