Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • How to use SHARED MEMORY between QT and MySQL Server

    2
    0 Votes
    2 Posts
    2k Views
    V
    Tell us when the preferred PIPE, SHARED MEMORY, and when the LOAD DATA INFILE. Maybe there are those who have tried all the options
  • Getting mouse events on all GLWidgets

    6
    0 Votes
    6 Posts
    2k Views
    T
    [quote author="AndreAhmed" date="1341306224"]I have posted another topic, would love to see your reply.[/quote] Just now I am busy, but in 20 minutes I will free and will try to answer;)
  • QT Gui Application, alingment and/or anchoring...

    23
    0 Votes
    23 Posts
    14k Views
    A
    [quote author="dcbasso" date="1341259385"]Sorry, my layout was missing the layout component to handle with added widget![/quote] So... it is solved?
  • 0 Votes
    6 Posts
    6k Views
    P
    FYI: I finally was able to display U+FFFF code points by explicitly setting the QLabel, QTextEdit, or QLineEdit style sheets as follows: @ font-family: "Segoe UI","Cambria Math";@ where Cambria Math is a font that contains the U+FFFF code points on my system. For some reason the font matching algorithm doesn't find Cambria Math on my system unless the font-family explicitly includes a font with code points above U+FFFF. With the above font-family declaration my text is rendered as Sagoe UI except for the U+FFFF code points which is rendered as Cambria Math. Note: I tried setting various combinations of font families and styles but the above was the only method that worked. Even setting the font-family or directly setting the font to Cambria failed to find the U+FFFF code points. I also checked on the lastResortFont(). It always came out as arial no matter how the font or font-family is set. I had hoped that I could set the last resort font to Cambria Math so I wouldn't have to worry about setting the stylesheet but I don't know where this parameter is set.
  • Any recommendation for a OpenGL 3D library?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Switching between GLWidgets

    1
    0 Votes
    1 Posts
    630 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!