Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Switching between GLWidgets

    1
    0 Votes
    1 Posts
    639 Views
    No one has replied
  • How to begin an instrumentation simulator

    4
    0 Votes
    4 Posts
    3k Views
    mzimmersM
    Thank you for the suggestions. Since this will be my first project that actually uses Qt for more than an IDE, I'd like a recommendation on an example as well, something I can use as a starting point. Any ideas?
  • Detect Operating system of SmartPhone connected to PC using QT

    5
    0 Votes
    5 Posts
    3k Views
    A
    I'm not Robert :) anyway: in WM_POWERBROADCAST test for DBT_DEVICEARRIVAL if it is, the lParam will be then DEV_BROADCAST_HDR structure. Check for dbch_devicetype in this structure and if it equals to DBT_DEVTYP_OEM your lParam is the DEV_BROADCAST_OEM structure, just cast lParam to DEV_BROADCAST_OEM. also read about SetupDiGetDeviceInterfaceDetail WINAPI function. bq. Second even if I get this object or pointer, how do i get the OS name ?? if OEM is "Apple iPhone bla bla", you have got iPhone, do more specific tasks with iPhone SDK to get OS version or whatever you need... If it is HTC, do the over stuff... and so on... You need to search on Specific Device devoplers forum for more information on how to get OS information for specified device. Qt and WINAPI can't help you here(WINAPI can help only for WM devices, maybe for WP too)
  • Is this DBus signal connection code correct?

    2
    0 Votes
    2 Posts
    2k Views
    N
    Just a quick bump. Does anyone have any idea what it is I'm doing wrong?
  • How to prevent moving cell (QtableView) if the data is invalid?

    3
    0 Votes
    3 Posts
    1k Views
    R
    [solved]
  • Getting stdout from applications like pdb

    7
    0 Votes
    7 Posts
    4k Views
    A
    moderators note: @ehulser: I have merged your three consecutive postings into a single one. If you want to add to a previous posting, especially if there have been no other replies in the mean time, please edit your previous post instead of creating a new one. Also, please use @ tags to surround code sections, so they can be properly formatted.
  • 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.